A new study reveals that the Mediterranean diet may enhance cognitive function by altering gut microbiota. Rats fed a Mediterranean-style diet showed distinct bacterial changes linked to better memory, cognitive flexibility, and working memory compared to those on a Western diet.